package com.pearadmin.pro.modules.training.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pearadmin.pro.common.web.base.page.PageResponse;
import com.pearadmin.pro.common.web.base.page.Pageable;
import com.pearadmin.pro.modules.training.entity.LaboratoryInfo;
import com.pearadmin.pro.modules.training.entity.vo.PageLaboratoryInfoVO;
import com.pearadmin.pro.modules.training.mapper.LaboratoryInfoRepository;
import com.pearadmin.pro.modules.training.service.LaboratoryInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class LaboratoryInfoServiceImpl extends ServiceImpl<LaboratoryInfoRepository, LaboratoryInfo> implements LaboratoryInfoService {


    @Resource
    private LaboratoryInfoRepository laboratoryInfoRepository;

    @Override
    public PageResponse<LaboratoryInfo> page(PageLaboratoryInfoVO request) {
        return Pageable.of(request,(()-> laboratoryInfoRepository.page(request)));
    }
}
